package com.iespring.controller.app.feedback;

import com.iespring.bean.admin.user.entity.MallFeedback;
import com.iespring.bean.common.BaseRespVo;
import com.iespring.service.app.feedback.WxFeedbackService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import javax.validation.Valid;

/**
 * Auth: 杨宇健
 * Time: 2023/1/1 14:23
 * Description:
 **/
@RequestMapping("wx/feedback")
@RestController
public class FeedbackController {

    @Resource
    WxFeedbackService feedbackService;

    @PostMapping("submit")
    public BaseRespVo submit(@RequestBody @Valid MallFeedback feedback){
        BaseRespVo respVo =  feedbackService.submit(feedback);
        return respVo;
    }

}
